home *** CD-ROM | disk | FTP | other *** search
/ OpenGL Superbible (2nd Edition) / OpenGL SuperBible e2.iso / tools / GLUT-3.7 / glutwin32.mak < prev    next >
Encoding:
Makefile  |  1998-08-12  |  1.8 KB  |  80 lines

  1.  
  2. # Be sure to modify the definitions in this file to agree with your
  3. # systems installation.
  4. #  NOTE: be sure that the install directories use '\' not '/' for paths.
  5.  
  6.  
  7. # MSVC install directories
  8. LIBINSTALL     = \msdev\lib
  9. INCLUDEINSTALL = \msdev\include\GL
  10.  
  11. # Win95 dll directory
  12. #DLLINSTALL     = \windows\system
  13.  
  14. # WinNT dll directory
  15. DLLINSTALL     = \winnt\system32
  16.  
  17. # Microsoft OpenGL libraries
  18. #
  19. GLU    = glu32.lib
  20. OPENGL = opengl32.lib
  21. GLUT   = $(TOP)/lib/glut/glut32.lib
  22. GLUTLIB = glut32.lib
  23. GLUTDLL = glut32.dll
  24.  
  25. # SGI OpenGL for Windows libraries (formerly Cosmo OpenGL)
  26. # >> To use, uncomment lines below and comment out the similiar
  27. # >> lines above.  You can download SGI OpenGL for Windows for
  28. # >> free from http://www.meer.net/~gold/OpenGL/opengl2.exe
  29. #
  30. #GLU     = \oglsdk\lib\glu.lib
  31. #OPENGL  = \oglsdk\lib\opengl.lib
  32. #GLUT    = $(TOP)/lib/glut/glut.lib
  33. #GLUTLIB = glut.lib
  34. #GLUTDLL = glut.dll
  35.  
  36. # The Micro UI lib
  37. MUI     = $(TOP)/lib/mui/mui.lib
  38.  
  39. # The OpenGL Extrusion and Tubing lib
  40. GLE     = $(TOP)/lib/gle/gle.lib
  41.  
  42. # The OpenGL Sphere Mapping lib
  43. GLSMAP  = $(TOP)/lib/glsmap/glsmap.lib
  44.  
  45. # common definitions used by all makefiles
  46. CFLAGS    = $(cflags) $(cdebug) $(EXTRACFLAGS) -DWIN32 -I$(TOP)/include
  47. LIBS    = $(lflags) $(ldebug) $(EXTRALIBS) $(GLUT) $(GLU) $(OPENGL) $(guilibs)
  48. EXES    = $(SRCS:.c=.exe) $(CPPSRCS:.cpp=.exe)
  49.  
  50. !IFNDEF NODEBUG
  51. lcommon = /NODEFAULTLIB /INCREMENTAL:NO /DEBUG /NOLOGO
  52. !ENDIF
  53.  
  54. # default rule
  55. default    : $(EXES)
  56.  
  57. # cleanup rules
  58. clean    ::
  59.     @del /f *.obj
  60.     @del /f *.pdb
  61.     @del /f *.ilk
  62.     @del /f *.ncb
  63.     @del /f *~
  64.     @del /f *.exp
  65.  
  66. clobber    :: clean
  67.     @del /f *.exe
  68.     @del /f *.dll
  69.     @del /f *.lib
  70.     -@del /f $(LDIRT)
  71.  
  72. # inference rules
  73. $(EXES)    : $*.obj $(DEPLIBS)
  74.     echo $@
  75.         $(link) -out:$@ $** $(LIBS)
  76. .c.obj    : 
  77.     $(CC) $(CFLAGS) $<
  78. .cpp.obj : 
  79.     $(CC) $(CFLAGS) $<
  80.